<%= form_for(@ticket) do |f| %>
  <% if @ticket.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@ticket.errors.count, "error") %> prohibited this ticket from being saved:</h2>

      <ul>
      <% @ticket.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :movie_genere_id %><br />
    <%= f.text_field :movie_genere_id %>
  </div>
  <div class="field">
    <%= f.label :numAsiento %><br />
    <%= f.text_field :numAsiento %>
  </div>
  <div class="field">
    <%= f.label :passenger_id %><br />
    <%= f.text_field :passenger_id %>
  </div>
  <div class="field">
    <%= f.label :trip_id %><br />
    <%= f.text_field :trip_id %>
  </div>
  <div class="field">
    <%= f.label :food_type_id %><br />
    <%= f.text_field :food_type_id %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
